<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Code Snippets</title>
	<link rel="stylesheet" type="text/css" href="s/default/static/reset.css"> 
	<link rel="stylesheet" type="text/css" href="s/default/static/fonts.css"> 
	<link rel="stylesheet" type="text/css" href="s/default/static/grids.css"> 
	<link rel="stylesheet" type="text/css" href="s/default/static/base.css"> 
	<link rel="stylesheet" type="text/css" href="s/default/static/style.css">
	<script type="text/javascript" src="res/scripts/shCore.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushBash.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushCpp.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushCSharp.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushCss.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushDelphi.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushDiff.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushGroovy.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushJava.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushJScript.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushPhp.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushPlain.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushPython.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushRuby.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushScala.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushSql.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushVb.js"></script>
	<script type="text/javascript" src="res/scripts/shBrushXml.js"></script>
	<link type="text/css" rel="stylesheet" href="res/styles/shCore.css"/>
	<link type="text/css" rel="stylesheet" href="res/styles/shThemeDefault.css"/>
	<script type="text/javascript">
		SyntaxHighlighter.config.clipboardSwf = 'res/scripts/clipboard.swf';
		SyntaxHighlighter.all();
	</script>
</head>

<body>
<div id="doc3" class="yui-t5">
	<div id="hd">
		<h1>Code Snippets</h1>
		<p>Log, recall and share code snippets</p>
	</div>
	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
			
				{% for snippet in snippets %}
				
				<h2>{{ snippet.title }}</h2>
				
				<pre class="brush: {{ snippet.language }};">{{ snippet.code }}</pre>
				
				<div class="comment">
					<blockquote>
						{{ snippet.comment }}
					</blockquote>
				</div>
				
				{% endfor %}

				<p>
					{% if prev_page %}
						<a href="/{{ prev_page }}">< Newer Entries</a>
					{% endif %}
					
					{% if next_page %}
						<a href="/{{ next_page }}">Older Entries ></a>
					{% endif %}
					
				</p>
				
				<p>
					{{ debug }}
				</p>

			</div>
		</div>
		
		<div class="yui-b">
			<h2>Sidebar</h2>
			<ul>
				<li><a href="/new">Add New</a></li>
			</ul>
		</div>	
	</div>

	<div id="ft">
		<div id="license">
			<div style="float: left;">
				<a rel="license" href="http://creativecommons.org/licenses/by/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/2.5/cn/88x31.png" /></a>		
			</div>
			<div style="margin-left: 95px;">
				This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/2.5/cn/">Creative Commons Attribution 2.5 China Mainland License</a>. <br />
				Maintained by cuiwenchao.com &copy; 2009 
			</div>
		</div>
	</div>

</div>

</body>
</html>
